#ifndef _ZH_DLL_
#define _ZH_DLL_
#endif

#include "Graphics/RenderFragment.h"
#include "Graphics/RenderTarget.h"

namespace ZH{
    namespace Graphics{
        CLASS_TYPE_NAME_DEFINITION( RenderFragment, "RenderFragment" )

        RenderFragment::RenderFragment(Camera* cam, World* w, RenderTarget** rts, unsigned int num):
            m_pCamera(cam),
            m_pWorld(w),
            m_pRenderTargets(NULL),
            m_uRenderTargetCount(num)
        {
            m_pRenderTargets = new RenderTarget*[num];
            for( unsigned int i=0; i< num; ++i ){
                m_pRenderTargets[i] = rts[i];
            }
        }

        RenderFragment::~RenderFragment()
        {
            delete []m_pRenderTargets;
        }

        void RenderFragment::render()
        {





        }

    }
}